﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BioModel;
using System.ServiceModel;

namespace BioDAL
{
    [ServiceContract]
    public interface IForestillingDAL
    {
        void OpenConnection(string connectionString);
        void CloseConnection();

        #region Forestilling
        int InsertForestilling(DateTime fremvisningsDato, string start, string slut, int film, int sal);
        void EditForestilling(int forestillingId, DateTime fremvisningsDato, string start, string slut, int film, int sal);
        List<Forestilling> AlleForestillinger();
        Forestilling GetEnForestilling(int forestillingId);
        Forestilling GetEnForestillingAfDatoOgTid(DateTime dato, string tid);
        Forestilling GetForestillingsIdFraFrilmIdDatoOgTid(int filmId, DateTime dato, string tid);
        List<Forestilling> GetForestillingerFraFilmId(int filmId);
        List<Forestilling> GetForestillingerFraDato(DateTime dato);
        List<Forestilling> GetForestillingerFraDatoOgFilmId(DateTime dato, int filmId);
        List<Forestilling> GetForestillingerFraDatoFilmIdOgTid(DateTime dato, int filmId, string tid);
        Forestilling GetForestillingId(int filmId, DateTime forestillingsDato, string startTid, int salId);
        #endregion
    }
}
